/**
  ******************************************************************************
  * @file    app_communi.h
  * @author  Sherlock
  * @version V0.1
  * @date    08/30/2024
  * @brief   Communication Handling
  ******************************************************************************
  * @copy
  *
  * <h2><center>&copy; COPYRIGHT 2010 Feirui</center></h2>
  */ 



/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef  __APP_COMMUNI_H__
#define  __APP_COMMUNI_H__


#ifdef __cplusplus
 extern "C" {
#endif


/**
  * @brief  INCLUDE FILES.
  */


/**
  * @brief GLOBALS RAM definition
  */
#ifdef   APP_GLOBALS_COMMUNI
#define  APP_EXT_COMMUNI
#else
#define  APP_EXT_COMMUNI  extern
#endif


#define OSCOMMUNIFlags_USBRXEnd                       ((OS_FLAGS)DEF_BIT_00)
#define OSCOMMUNIFlags_RS232RXEnd                     ((OS_FLAGS)DEF_BIT_01)
#define OSCOMMUNIFlags_RS485RXEnd                     ((OS_FLAGS)DEF_BIT_02)
#define OSCOMMUNIFlags_BTHRXEnd                       ((OS_FLAGS)DEF_BIT_03)
#define OSCOMMUNIFlags_TXStartPrint                   ((OS_FLAGS)DEF_BIT_04)
#define OSCOMMUNIFlags_UpdTiming                      ((OS_FLAGS)DEF_BIT_05)
  
#define OSCOMMUNIFlags_ALL                            (OSCOMMUNIFlags_USBRXEnd     |\
                                                       OSCOMMUNIFlags_RS232RXEnd   |\
                                                       OSCOMMUNIFlags_RS485RXEnd   |\
                                                       OSCOMMUNIFlags_BTHRXEnd     |\
                                                       OSCOMMUNIFlags_TXStartPrint |\
                                                       OSCOMMUNIFlags_UpdTiming    )
                                                    
#define OSCOMMUNIFlags_DefaultValue                   ((OS_FLAGS)    0x0000)


#ifdef __cplusplus
}
#endif


#endif   /*  __APP_COMMUNI_H__  */

/******************* (C) COPYRIGHT 2010 Feirui *****END OF FILE****/